package com.coc.ofhibernate.repository.main;

import com.coc.ofhibernate.entity.database1.People;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

public interface MainRepository extends JpaRepository<People,Integer> {

    @Query(value = "from People where id = ?1 ")
    public People findByUserId(Integer id);


}
